package com.cie2.janji.entities;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.tapestry5.beaneditor.NonVisual;
import org.apache.tapestry5.beaneditor.Validate;

@Entity
@Table(name="base_entity")
public class BaseEntity {

	private Long id;
	
	private String name;
	
	private String fullName;

	private String description;
	
	private String image;
	
	private Date createdDate;
	
	private Date updatedDate;

	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @NonVisual	
	public Long getId() {
		return id;
	}

	@Validate("required")
	public String getName() {
		return name;
	}
	
	public String getFullName() {
		return fullName;
	}

	
	public String getDescription() {
		return description;
	}

	public Date getCreatedDate() {
		return createdDate;
	}



	public String getImage() {
		return image;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}


	public void setCreatedDate(Date created_date) {
		this.createdDate = created_date;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setImage(String photo) {
		this.image = photo;
	}


	public void setUpdatedDate(Date update_date) {
		this.updatedDate = update_date;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
}
